package copy.express.process.spit.impl.buffer;

public class AbsBufferTypeIndex  {


    public int findRightIndex(int start,char[] chars,char c){
        for (int i = start; i < chars.length; i++) {
            if ( chars[i] == c ){
                return i;
            }
        }
        return -1;
    }

    public int findLeftIndex(int start,char[] chars,char c){
        for (int i = start; i >= 0; i--) {
            if ( chars[i] == c ){
                return i;
            }
        }
        return -1;
    }

}
